System.Messaging Reference (Document! X Sample)
XmlMessageFormatter Constructor(String[])



System.Messaging Namespace > XmlMessageFormatter Class > XmlMessageFormatter Constructor : XmlMessageFormatter Constructor(String[])
An array of type System.String that specifies the set of possible types that will be deserialized by the formatter from the message provided. These values must be fully qualified, for example, "MyNamespace.MyOrders, MyOrdersAssemblyName".
Initializes a new instance of the XmlMessageFormatter class, setting target types passed in as an array of (fully qualified) string values.
Syntax
'Declaration
 
Public Function New( _
   ByVal targetTypeNames() As String _
)
'Usage
 
Dim targetTypeNames() As String
 
Dim instance As New XmlMessageFormatter(targetTypeNames)
public XmlMessageFormatter( 
   string[] targetTypeNames
)
public:
XmlMessageFormatter( 
   array<String^>^ targetTypeNames
)

Parameters

targetTypeNames
An array of type System.String that specifies the set of possible types that will be deserialized by the formatter from the message provided. These values must be fully qualified, for example, "MyNamespace.MyOrders, MyOrdersAssemblyName".
Exceptions
ExceptionDescription
The targetTypeNames parameter is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XmlMessageFormatter Class
XmlMessageFormatter Members
Overload List